package com.nf;

import com.nf.entity.Car1;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test2 {
    public static void main(String[] args){
        ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
        Car1 c1 = (Car1) ac.getBean("car1");
        System.out.println(c1.getName()+","+c1.getSum()+","+c1.getPrivce());
    }
}
